package com.feidee.bigdata.controller;


import com.feidee.bigdata.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;
import java.math.BigInteger;

/**
 * @Author:CHQ
 * @Date:2020/5/11 18:01
 * @Description
 */
@RestController
public class AccountController {
    @Autowired
    private AccountService accountService;

    @RequestMapping("/account/decrease")
    public void decrease(@RequestParam(value = "userId") Long userId,
                         @RequestParam(value = "money") Long money) {
        accountService.decrease(userId, money);
    }
}
